package com.yan.test7;

import com.yan.test7.domain.MyArrayList;
import com.yan.test7.inter.Selector;

public class test {
    public static void main(String[] args) {
        MyArrayList list = new MyArrayList();
        list.add("张三");
        list.add("李四");
        list.add("王五");
        list.remove(1);
        list.set(1,"赵六");
        System.out.println(list.get(1));
        System.out.println("------------------------------------------");
        Selector select = list.select();
        while(select.hasNext()){
            Object next = select.next();
            System.out.println(next);
        }
    }
}
